package com.exam.api.modules.file.service;


import cn.dev33.satoken.stp.SaTokenInfo;
import com.exam.api.modules.file.dto.FileBase64DTO;
import org.dromara.x.file.storage.core.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;

/**
 * @Author bcheng
 * @Create 2023/12/25 17:54
 * @Description 文件相关逻辑
 */
public interface TblFileService {
    FileInfo uploadTempFile(InputStream in);

    FileInfo uploadTempFile(MultipartFile file);

    FileInfo uploadSysFile(SaTokenInfo tokenInfo, MultipartFile file);

    FileInfo uploadSysFile(MultipartFile file);

    FileInfo uploadFile(File file);

    FileInfo uploadFile(byte[] bytes);

    FileInfo uploadFile(MultipartFile file);

    FileInfo uploadFileBase64(FileBase64DTO dto);
}
